//
//  TVCommodityModel.swift
//  iPhone
//
//  Created by Toj on 12/14/22.
//

import UIKit


struct STChannelCellModel {
 
    init(channelMode: NSObject, channelInfo: NSObject? = nil) {
        
    }
}

struct TVCommodityModel {
    var id = ""
    var selected = false
}

class TVCommodityCellModel: NSObject {
    
    var coupon: TVCouponModel? { willSet {
        print("-->toj: willSet: \(coupon?.selected)")
        print("-->toj: willSet: \(newValue?.selected)")
    } didSet {
        print("-->toj: didSet: \(coupon?.selected)")
    } }
    
    init(commodity: TVCommodityModel) {
        super.init()
        let couponModel = TVCouponModel()
        couponModel.selected = commodity.selected
        coupon = couponModel
    }
}

class TVCouponModel: NSObject {
    var selected = false
}
